<?php

    /**
     * where is our FW located?
     *
     * ___FwP   Framework Path
     *          Path to the FW folder
     *
     * ___AppP  Aplication Path
     *          definied in the bootstrap
     *          includes 3rdParty folder & user obj
     */
     
    define ('__FwP', realpath(dirname(__FILE__)));

    /**
     * Autoload Mechanism
     */
    include __FwP."/include/autoload.php";

    /**
     * Create the Space
     */
    include __FwP."/class/registry.php";
    $r = FWregistry::getInstance();

    /**
     * This is eve.
     */
    include __FwP."/class/object.php";

    /**
     * This is how we communicate
     */
    include __FwP."/class/messanger.php";
    $m = FWmessanger::getInstance();

    /**
     * not ready yet
     * @todo include cachebuster
     */
        //include "class/cache.php";
        //$c = FWcache::getInstance();

    /**
     * TEMPLATE ENGINE
     */
    require_once __AppP."/3rdParty/phpQuery/phpQuery.php";
    include __FwP."/class/template.php";
    $r->template = new FWtemplate;
    $r->template->boot();


?>
